const mysql = require('mysql')
const config = require('./config')

const sqlHelper = (sql, callback) => {
    const conn = mysql.createConnection(config)
    conn.connect()
    conn.query(sql, callback)
    conn.end()
}

module.exports = sqlHelper